export class ActivityApplyRule {
  constructor(required, activityEl) {
    this.asyncValidator = (rule, info) => {
      if (!required) return Promise.resolve();
      return activityEl
        ? activityEl.validate()
        : Promise.reject("节点不存在");
    };
  }
}
